import request from "../utils/request";

export function getNoticeList(){
    return request.get('/notice/list');
}

export function addNotice(params){
    return request.post('/notice/addNotice',params);
}

export function deleteNoticeById(id){
    return request.delete(`/notice/deleteNoticeById/${id}`);
}

export function getNoticeDetailById(id){
    return request.get(`/notice/getNoticeDetailById/${id}`);
}

export function getMyNoticeList(){
    return request.get('/notice/getMyNoticeList');
}

export function getSomeNotices(){
    return request.get('/notice/getSomeNotices');
}

export function getICanApprovedNotices(){
    return request.get('/notice/getICanApprovedNotices');
}

export function updateTheNotice(params){
    return request.put('/notice/updateTheNotice',params);
}

export function updateNotice(params){
    return request.put('/notice/updateNotice',params);
}
export function readNotice(id){
    return request.post(`/notice/readNotice/${id}`);
}
